package com.hk.developmentlib.base;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;

import com.hk.developmentlib.utills.CacheUtils;

import org.xutils.common.util.LogUtil;

/**
 * Created by 伦哥哥 on 2017/6/24.
 */

public class DevelopmentKit {
    // context
    private static Context context;
    private static Handler mMainThreadHandler;  //主线程Handler

    public static void init(Context context) {
        DevelopmentKit.context = context.getApplicationContext();
        mMainThreadHandler = new Handler();
    }

    public static Context getContext() {
        return context;
    }

    /**
     * 获取主线程的handler
     */
    public static Handler getMainThreadHandler() {
        return mMainThreadHandler;
    }

    public static String getPackageName() {
        return context.getPackageName();
    }


}
